// 分页参数
export interface PageQuery {
  pageNum?: number
  pageSize?: number
}

// 文章查询参数
export interface ArticleQuery extends PageQuery {
  keyword?: string
  category?: string
  tags?: string[]
}

// 分页响应
export interface Page<T> {
  records: T[]
  total: number
  size: number
  current: number
  pages: number
}

// 文章实体
export interface Article {
  id: number
  title: string
  content: string
  url: string
  tags: string
  category: string
  createTime: string
  updateTime: string
  analyzing?: boolean
}

// 统计信息
export interface ArticleStatistics {
  totalArticles: number
  totalCategories: number
  totalTags: number
  mostUsedCategory: string
  mostUsedTag: string
}

// API 响应类型
export interface ApiResponse<T> {
  code: number
  message: string
  data: T
}

// 分页响应类型
export interface PageResponse<T> {
  records: T[]
  total: number
  size: number
  current: number
  pages: number
}

// 文章查询响应类型
export type ArticleListResponse = ApiResponse<PageResponse<Article>> 

// 文章问答
export interface ArticleQA {
  id: number
  articleId: number
  articleTitle: string
  question: string
  answer: string
  sceneType: string
  createTime: string
}

// API 统一返回格式
export interface Result<T> {
  code: number
  message: string
  data: T
}

// 问答查询参数
export interface ArticleQAQuery {
  pageNum?: number
  pageSize?: number
  articleTitle?: string
  sceneType?: string
}

// 问答统计
export interface ArticleQAStatistics {
  total: number
  inLoveCount: number
  pursuingCount: number
}

// 场景类型
export enum SceneType {
  IN_LOVE = 'IN_LOVE',
  PURSUING = 'PURSUING'
} 